/**
 * Copyright© 2003-2019 浙江汇信科技有限公司, All Rights Reserved. <br/>
 */
package com.icinfo.cloud.provider.punish.config.model;

import com.fasterxml.jackson.annotation.JsonFormat;
import com.icinfo.cloud.common.core.Validator.BaseGroup;
import lombok.Data;

import javax.persistence.*;
import javax.validation.constraints.NotBlank;
import java.io.Serializable;
import java.util.Date;

/**
 * 描述:  config_case_approval_center 对应的实体类.<br>
 * WARNING：不是表中字段的属性必须加@Transient注解
 * @author framework generator
 * @date 2022年04月01日
 */
@Data
@Table(name = "upcase.config_case_approval_center")
public class ConfigCaseApprovalCenter implements Serializable {
    /**
     * 主键
     */
    @Id
    @Column(name = "id")
    @NotBlank( message = "id不能为空", groups = {BaseGroup.Update.class})
    private String id;

    /**
     * 配置项名称
     */
    @Column(name = "config_name")
    private String configName;

    /**
     * 适用区域类型；0 全省，1指定类别
     */
    @Column(name = "apply_area_type")
    private String applyAreaType;

    /**
     * 适用区域名称
     */
    @Column(name = "apply_area_name")
    private String applyAreaName;

    /**
     * 适用区域编码
     */
    @Column(name = "apply_area_code")
    private String applyAreaCode;

    /**
     * 创建人名称
     */
    @Column(name = "create_user_name")
    private String createUserName;

    /**
     * 创建人id
     */
    @Column(name = "create_user_id")
    private String createUserId;

    /**
     * 是否启用；0 未启用,1已启用
     */
    @Column(name = "is_used")
    private String isUsed;

    /**
     * 创建时间
     */
    @Column(name = "create_time")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss",timezone = "GMT+8")
    private Date createTime;

    private static final long serialVersionUID = 1L;

}